package chat02;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2024-09-12
 * Time: 20:16
 */
public class ClientA {

    public static void main(String[] args) throws IOException {

        // 创建一个客户端   ipconfig   IPV4
        Socket socket = new Socket("127.0.0.1",8888);

        // 客户端创建成功,并且连接到服务器了
        System.out.println("创建成功,并且连接到服务器");

        new ForwardMsg(socket).start();
        new ReceiveMsg(socket).start();

    }

}

